package com.cloudeasy.provider.model.dto.menu;

import com.cloudeasy.provider.model.vo.MenuVo;
import lombok.Data;

import java.io.Serializable;

/**
 * Create By 郭金宝 on 2019/1/11.<br>
 */
@Data
public class UserMenuChildrenDto implements Serializable {
    /**
     * 叶子节点菜单名称
     */
    private String leafMenuName;
    /**
     * 是否被选中,true
     */
    private boolean checked;
    /**
     * 跳转URL
     */
    private String url;
    /**
     * 叶子节点菜单Id
     */
    private Long leafMenuId;


    /**
     * Instantiates a new User menu children dto.
     *
     * @param menuVo the menu vo
     */
    public UserMenuChildrenDto(MenuVo menuVo) {
        this.leafMenuName = menuVo.getMenuName();
        this.url = menuVo.getUrl();
        this.leafMenuId = menuVo.getId();
    }
}
